import SysConfig
import ItemAnalysis

class CAnalysis:
    def __init__(self):
        if SysConfig.bItemAnalysisOpen:
            self.itemAnalysis = ItemAnalysis.CItemAnalysis();
        
    def process_lines(self, keywords, line):
        if SysConfig.bItemAnalysisOpen and keywords in SysConfig.list_item_concerned_keywords:
            self.itemAnalysis.process_lines(keywords, line);
            
    def output_log(self):
        if SysConfig.bItemAnalysisOpen:
            self.itemAnalysis.output_log();
    